#coding:utf-8
import xadmin
from .models import StrategyParameters
from xadmin import views


#打开主题面版
class BaseSetting(object):
    enable_themes = True
    use_bootswatch = True


#修改标题h和版权
class GlobalSetting(object):
    site_title = u'FTS后台管理'

    site_footer = 'admin'
#开启菜单收缩功能
    menu_style = 'accordion'

class StrategyParametersAdmin(object):
    pass


xadmin.site.register(StrategyParameters, StrategyParametersAdmin)
xadmin.site.register(views.base.BaseAdminView, BaseSetting)
xadmin.site.register(views.CommAdminView, GlobalSetting)